/*
   Copyright 2009 Bégaudeau Stéphane

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */

package faneclipse.preferences;

import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;

/**
 * @author BEGAUDEAU stephane
 */
public class FanColorPropertyChangeListener implements IPropertyChangeListener {
	
	/**
	 * The constructor.
	 */
	public FanColorPropertyChangeListener() {
		super();
	}
	
	/**
	 * @param event The property change event.
	 * @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
	 */
	public final void propertyChange(final PropertyChangeEvent event) {
		if (event.getProperty().equals(FanPreferenceConstants.DEFAULT_PREFERENCE)) {
			System.out.println("Change the color of default text in the editor");
		}
		if (event.getProperty().equals(FanPreferenceConstants.COMMENTS_PREFERENCE)) {
			System.out.println("Change the color of comments in the editor");
		}
		if (event.getProperty().equals(FanPreferenceConstants.KEYWORDS_PREFERENCE)) {
			System.out.println("Change the color of keyword in the editor");
		}
		if (event.getProperty().equals(FanPreferenceConstants.STRINGS_PREFERENCE)) {
			System.out.println("Change the color of strings in the editor");
		}
	}
}
